<?php
        class cart extends model {
           
           function view(){ 
           
          $arraynewdata= $this->getdefault();
            //echo "home";
           
            if($this->userdata['userid'])
            {
             $userdata=$this->getuserbyoauth($this->userdata['oauth']);
           if($userdata['userid'])
           {
            $arraynewdata['cssdata'][]=baseinfo.'/css/theme1/cart.css'; 
            
            $arraynewdata['carthistory']=$this->getcarthistory($this->userdata['userid']);
            
           $arraynewdata['mypoint']=$this->getpoint($userdata['userid']);
            
            
             $arraynewdata['countryall']=$this->getcountry();
             $arraynewdata['provinceall']=$this->getprovince();
             
  
            
       //    echo "<pre>";
//            print_r($arraynewdata['carthistory']);
//            echo "</pre>;";
//            exit;

       //     $arraynewdata['myscore']=$this->getmyscore($this->userdata['userid']);
          //  $arraynewdata['bank']=$this->getbank();
//            $arraynewdata['banktype']=$this->getbanktype();
//            $arraynewdata['currency']=$this->getcurrency();
            
            $this->loadtemplate('cart',$arraynewdata);  
           }
            
            
            }
            
            

            
           }
        
        
        }
?>
